Ths allows the retrieval of the wl_surface before the window is shown.
The surface is still created in the original places since the surface
and shell surface is destroyed when the surface is programmatically
hidden.
window_update_scale (window);
}
+
+static void
+gdk_wayland_window_create_surface (GdkWindow *window);
+
void
_gdk_wayland_display_create_window_impl (GdkDisplay *display,
GdkWindow *window,
break;
}
+ gdk_wayland_window_create_surface (window);
+
if (attributes_mask & GDK_WA_TYPE_HINT)
gdk_window_set_type_hint (window, attributes->type_hint);
};
static void
-gdk_wayland_window_create_surface (GdkWindow *window)
+gdk_wayland_window_create_surface (GdkWindow *window)
{
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
GdkWaylandDisplay *display_wayland = GDK_WAYLAND_DISPLAY (gdk_window_get_display (window));